package com.hmall.api.client;

import feign.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author xiaoqiu
 * @date 2024/10/9 0:47
 * @description
 */
@FeignClient(name = "user-service")
public interface UserClient {
    @PutMapping("/user/money/deduct")
     void deductMoney(@RequestParam("pw") String pw, @RequestParam("amount") Integer amount);
}
